<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-04-06 10:57:56
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-04-11 21:18:15
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-invoiced-list\\transaction-details\\transaction-details.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<div>
  <!-- <div nz-col nzSpan="19">
    <sf #sf [schema]="searchSchema" [ui]="{ '*': { spanLabelFixed: 90, grid: { span: 12 } } }" [compact]="true" [button]="'none'"></sf>
  </div>
  <div nz-col [nzSpan]="5" class="text-right mb-md">
    <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
    <button nz-button (click)="resetSF()">重置</button>
  </div> -->

  <st
    #st
    [data]="url"
    [columns]="columns"
    bordered
    size="small"
    [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
    [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
    [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
    [loading]="false"
    [scroll]="{ x: '500px'}"
  ></st>
</div>
<nz-modal
  [(nzVisible)]="isVisible"
  [nzWidth]="800"
  [nzFooter]="nzModalFooter"
  nzTitle="发票明细"
  (nzOnOk)="handleCancel('0')"
  (nzOnCancel)="handleCancel('0')"
>
  <ng-container *nzModalContent>
    <st
      #stFloat
      size="small"
      [bordered]="true"
      [data]="tableList2"
      [columns]="columnsFloat"
      [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
    [scroll]="{ x: '600px'}"
    >
    <ng-template st-row="vatnameLabel" let-item let-index="index">
      <ng-container >{{ item.vatnameLabel || item.vatname }}</ng-container>
    </ng-template>
    <ng-template st-row="vatmodel" let-item let-index="index">
      <ng-container >{{ item.vatmodel }}</ng-container>
    </ng-template>
    <ng-template st-row="vatunit" let-item let-index="index">
      <ng-container >{{ item.vatunit }}</ng-container>
    </ng-template>
    <ng-template st-row="vatqty" let-item let-index="index">
      <ng-container >{{ item.vatqty }}</ng-container>
    </ng-template>
    </st>
  </ng-container>
  <ng-template #nzModalFooter>
    <button nz-button nzType="primary" (click)="handleCancel('0')">取消</button>
    <button nz-button nzType="default" (click)="handleCancel('0')">确定</button>
  </ng-template>
</nz-modal>